package pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Person {
	private String id;
	private String name;
	private boolean sex;
	private int sal;
	@DateTimeFormat(pattern="yyyy-mm-dd")
	private Date birth;
	public Person() {
		super();
	}
	public Person(String id, String name, boolean sex, int sal, Date birth) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.sal = sal;
		this.birth = birth;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	public int getSal() {
		return sal;
	}
	@Override
	public String toString() {
		return "Person [id=" + id + ", name=" + name + ", sex=" + sex + ", sal=" + sal + ", birth=" + birth + "]";
	}
	public void setSal(int sal) {
		this.sal = sal;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	
}
